the fire on a platform in the gulf of mexico has been extinguished , pemex says .
45 workers were injured in the blaze , according to the state oil company .
four workers were killed in the oil rig fire , which started early wednesday .